package syntaxtree;

public class MethodDecl extends AbstractNode {

	public final Type returnType;
	public final Identifier id;
	public final FormalList formalList;
	public final VarDeclList varList;
	public final StatementList stmList;
	public final Exp returnExp;

	public MethodDecl(Type type, Identifier id, FormalList formalList, VarDeclList varList, StatementList stmList, Exp exp) {
		this.returnType = type;
		this.id = id;
		this.formalList = formalList;
		this.varList = varList;
		this.stmList = stmList;
		this.returnExp = exp;
	}
}
